package org.njbdqn.componse.page;

public class PageInParam {
	private int currentPage=1;
	private int pageSize=10;
	private String conds;
	private String sqlConds;
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getConds() {
		return conds;
	}
	public void setConds(String conds) {
		this.conds = conds;
		this.sqlConds="";
		String [] cond= conds.split(";");
		ConditionContext ctx = new ConditionContext();
		for (String cd : cond) {
			sqlConds+=" and "+ctx.getSqlQueryByCondition(cd);
		}
		sqlConds= sqlConds.replaceFirst("and", "");
		
	}
	public String getSqlConds() {
		return sqlConds;
	}
	
}
